package day01_homework;

import java.util.Arrays;

public class Test08 {
    public static void main(String[] args) {
        String str = "http://localhost:8088/myweb/reg?name=zhangsan&pwd=123456&nick=san&age=16&name=zhangpengyuan&age=23";

        String[] strs = str.split("\\?");
        System.out.println(Arrays.toString(strs));
        String[] strs2 = strs[1].split("&");
        System.out.println(Arrays.toString(strs2));
    }
}
